<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [

    'index'     => 'index/index',
    'fuckie'    => 'common/fuckie',

    '[common]'  => [
        'refreshCaptcha'    => 'common/refreshCaptcha',
    ],

    '[auth]'    => [
        'login'         => 'auth/login',
        'register'      => 'auth/register',
        'logout'        => 'auth/logout',
        'autologin'     => 'auth/autoLogin',
        'resetpassword' => 'auth/resetPassword',
        'reset'         => 'auth/clickResetUrl',
    ],

    '[goods]'   => [
        'list'          => 'goods/goodsList',
        'add'           => 'goods/addGoods',
    ],

    '[user]'    => [
        'modifyname'    => 'user/modifyUserName',
        'setprotect'    => 'user/setProtect',
        'modifyimage'   => 'user/modifyImage',
        'modifypassword'=> 'user/modifyPassword',
        ''              => 'user/index',//将改路由放第一行匹配不到后面的路由
    ],

     '[test]'   => [
        'dictionary'    => 'test/dictionary',
        'test'          => 'test/test',
    ],

     '[api]'    => [
        'croppic'       => 'api/croppic/crop',
        'removepic'     => 'api/croppic/removepic',
    ],

];
